package lee.test.log;

import java.io.IOException;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class LogLevelOrder {
    static Logger log = Logger.getLogger("lee");
    
    public static void main(String[] args) throws IOException {
        //BasicConfigurator.configure();
        PropertyConfigurator.configure("log.properties");
        //log.setLevel(Level.INFO);
        
        log.warn("hello it's warn");
        log.debug("hello it's debug");
        log.error(" hello it'serror");
        log.info(" hello it's info");
        Bar b = new Bar();
        b.doit();
    }
}
